<template>
	<view>
		<!-- 内容 -->
		<view class="main">
			<view class="head">
				<view class="tit1" @click="clog()" style="display: flex;">
					<view class="text">
						销量
					</view>
					<view class="icon">
					<u-icon name="arrow-down-fill"></u-icon>
					</view>
					<!-- 判断显示隐藏 -->
					<!-- <view class="icon">
					<u-icon name="arrow-down-fill"></u-icon>
					</view> -->
				</view>
				<view class="tit1" style="display: flex;">
					<view class="text">
						价格
					</view>
					<view class="icon">
					<u-icon name="arrow-down-fill"></u-icon>
					</view>
					<!-- 判断显示隐藏 -->
					<!-- <view class="icon">
					<u-icon name="arrow-down-fill"></u-icon>
					</view> -->
				</view>
			</view>
			<view class="main">
				<view class="rows" @click="router('/Shop/detail/detail')">
					<view class="row1" v-for="(item,index) in 10" :key="index">
						<view class="image">
							<image class="img" src="../../static/shop/1595657049599668876.jpg" mode=""></image>
						</view>
						<view class="text">
							<view class="tit">
								蓝月亮洗衣液
							</view>
							<view class="money">
								￥65.2
							</view>
						</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			data: '',
		},
		data() {
			return {
				dataLsit: this.data
			};
		},
		watch: {

		},
		methods: {
			clog() {
				console.log(this.dataLsit);

			},
			router(url) {
				this.$u.route({
					url: url
				})
			}
		}
	}
</script>

<style lang="scss">
	.tit1{
		width: 100rpx;
	}
	.main {
		padding-top: 10rpx;
		background-color: #FFFFFF;

		.head {
			width: 90%;
			margin: 30rpx auto;
			display: flex;
		}

		.rows {
			width: 95%;
			margin: auto;
			display: flex;
			justify-content: space-around;
			flex-wrap: wrap;

			.row1 {
				width: 40%;

				.image {
					width: 100%;
					height: 200rpx;
					border-radius: 15rpx 15rpx 0 0;

					image {
						border-radius: 15rpx 15rpx 0 0;
					}
				}

				.text {
					margin: 0;
					height: 90rpx;
					margin-bottom: 20rpx;
					background-color: #fff;

					.tit {
						padding: 10rpx 0 0 20rpx;
						font-size: 24rpx;
					}

					.money {
						color: rgba(247, 18, 5, 100);
						margin-left: 30rpx;
						margin-top: 5rpx;
						font-size: 24rpx;

					}
				}
			}
		}
	}
</style>
